# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=orca
pkgver=3.36.3
pkgrel=0
pkgdesc="Orca is an extensible screen reader"
url="https://wiki.gnome.org/Projects/Orca"
arch="noarch !armhf" # missing gst-plugins-good
license="LGPL-2.1-or-later"
depends="python3 py3-gobject3 gtk+3.0 gst-plugins-good at-spi2-core
	py3-atspi atk py3-xdg"
makedepends="intltool py3-gobject3-dev at-spi2-atk-dev gstreamer-dev itstool
	at-spi2-core-dev"
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/orca/${pkgver%.*}/orca-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="63420bd777b5c5479f2b10399da0e153d5998d9d443eddc434476b7881abc21700a67439766c2cb2c1e68b2d6f40b90912ef9c468d7d621cc1322799b8abc4ba  orca-3.36.3.tar.xz"
